package com.cash.channel.svc.service.api;

import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.ApplySubmitResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.ApplySubmit;
import org.springframework.stereotype.Service;

@Service("applySubmit")
public class CJH000002 implements BaseApi<ApplySubmitResponse> {

    @Override
    public ApiResponseModel<ApplySubmitResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        ApplySubmit applySubmit = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.订单进件, ApplySubmit.class);
        return applySubmit.doApplySubmit(apiRequestModel);
    }

}
